home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 February: Tool Chest / Dev.CD Feb 94.toast / New System Software Extensions / QuickDraw™ GX v1.0ß2 / Sample Code / Printing Samples / Printer Drivers… / LaserWriterIISC / SCPrinterStatus.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-09-13  |  2.0 KB  |  60 lines  |  [TEXT/MPS ]

  1. /*---------------------------------------------------------------------------
  2. FILENAME
  3.     SCPrinterStatus.h
  4.  
  5. DESCRIPTION
  6.     This module contains the constant and type declarations for the 
  7.     SCPrinterStatus.c file.  That file contains the routines which manage
  8.     checking the status of the SC printer and alerting the user (as needed) to
  9.     problems that might arise.
  10.     
  11.     Note: this file contains some types and constants that need to be moved
  12.     from the Universal Driver to the public printing interfaces.
  13.         
  14.     9/13/93 - Updated for the b2 seed.
  15.         
  16. COPYRIGHT
  17.     Copyright Apple Computer, Inc. 1989-1992
  18.     All rights reserved. 
  19.  
  20. -------------------------------------------------------------------------- */
  21.  
  22. #ifndef __SCPRINTERSTATUS__
  23. #define __SCPRINTERSTATUS__
  24.     
  25.  
  26. /*********************************************************************************
  27.  *                                         CONSTANTS                                                     *
  28.  *********************************************************************************/
  29.  
  30. // Miscellaneous constants 
  31. enum
  32. {
  33.     kNoPrinterProblem        = nil        // Indicates printer is not experiencing any problems 
  34. };
  35.  
  36.  
  37. /*********************************************************************************
  38.  *                                            DEFINES                                                    *
  39.  *********************************************************************************/
  40.  
  41. #define    GetStatResID(printerProblem)        HiWord(printerProblem)
  42. #define    GetStatResIndex(printerProblem)        LoWord(printerProblem)
  43.  
  44.  
  45. /*********************************************************************************
  46.  *                                    FORWARD DECLARATIONS                                            *
  47. **********************************************************************************/
  48.  
  49. void SetPrinterProblemStatResIndex(short statResIndex, long *printerProblem);
  50.  
  51. void SetPrinterProblemStatResID(short statResID, long *printerProblem);
  52.  
  53. OSErr FindPrinterProblem(long *printerProblem,  Boolean *fAbort);
  54.  
  55. OSErr ResolvePrinterProblem(    long             printerProblem, 
  56.                                 Boolean         manualFeed,
  57.                                 gxPaperType        thePaperType,
  58.                                 short            *dialogResult);
  59.  
  60. #endif __SCPRINTERSTATUS__